PORTNAME=	compiz-plugins-main
PORTVERSION=	0.8.18
CATEGORIES=	x11-wm
MASTER_SITES=	https://gitlab.com/compiz/${PORTNAME}/uploads/9a0178324a73e286352b00c66f02cc07/

MAINTAINER=	portmaster@BSDforge.com
COMMENT=	Plugins for Compiz Composite Window Manager
WWW=		https://gitlab.com/compiz/compiz-plugins-main

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	compiz-bcop>0:devel/compiz-bcop \
		compiz>0:x11-wm/compiz
LIB_DEPENDS=	libstartup-notification-1.so:x11/startup-notification \
		libatspi.so:accessibility/at-spi2-core \
		libdbus-1.so:devel/dbus \
		libharfbuzz.so:print/harfbuzz \
		libnotify.so:devel/libnotify
RUN_DEPENDS:=	${BUILD_DEPENDS}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-static
INSTALL_TARGET=	install-strip
USES=		gettext gl gmake gnome jpeg libtool:keepla localbase:ldflags \
		pathfix pkgconfig tar:xz xorg
USE_CSTD=	gnu89
USE_GL=		glu
USE_GNOME=	cairo gdkpixbuf2 intltool pango libxslt
USE_XORG=	ice sm x11 xcomposite xcursor xdamage xext xfixes xi \
		xinerama xorgproto xrandr xrender
USE_LDCONFIG=	yes

# Fix build with clang11
CFLAGS+=	-fcommon

.include <bsd.port.mk>
